<%= content_tag :div,
  class: datetime_editor.css_classes,
  data: datetime_editor.data_attributes do %>
  <%= element_form.fields_for(:ingredients, datetime_editor.ingredient) do |f| %>
    <%= ingredient_label(datetime_editor) %>
    <div class="input-field">
      <%= alchemy_datepicker(
        datetime_editor, :value, {
          name: datetime_editor.form_field_name,
          id: datetime_editor.form_field_id,
          value: datetime_editor.value,
          type: datetime_editor.settings[:input_type]
        }
      ) %>
      <label for="<%= datetime_editor.form_field_id %>" class="ingredient-date--label">
        <%= render_icon "calendar" %>
      </label>
    </div>
  <% end %>
<% end %>
